<template>
    <div>
      <tr v-for="obj in objList" :key="obj.id">       
          <input type="checkbox" v-model="obj.isChecked">
           <img :src="obj.img">
          <td>
            <div class="top">
              <span class="span1">{{ obj.name }}</span>
              <span class="span2">{{ obj.describe  }}</span>
            </div>
            <div class="bottom">
            <div>
              <span class="span3">{{ obj.price }}</span>
              <del class="del">{{ obj.costPrice }}</del>
            </div>
           </div>
          </td>
        </tr>
    </div>
  </template>
  
  <script>
  export default {
      data(){
      return{
        objList: [
          { id:'', img:require ("@/assets/酱香拿铁.jpg"),name: "酱香拿铁", describe :"酱香专属红杯/冰/不另外加糖/默认奶油",  price:"¥19",isChecked: false },
          { id:'', img:require("@/assets/马斯卡彭生烙拿铁.jpg") ,name: "马斯卡彭生酪拿铁", describe :"热/不另外加糖",   price: "¥19",  isChecked: false},
          { id:'', img: require ("@/assets/圣诞烤布丁拿铁.jpg"),name: "圣诞烤布丁拿铁", describe :"热/标准甜/默认奶油/大师浓缩", price:"¥19", isChecked: false  },
          { id:'', img: require("@/assets/热红酒美式.jpg") ,name: "热红酒美式", describe :"热/少甜",   price:"¥19",isChecked: false}
        ],
      }
    }
  }
  </script>
  
  <style>
  img{
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  button{
    border: 0;
  }
  .top{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
  .span1{
    font-size: 18px;
    font-weight: 600;
  }
  .span2{
    font-size: 14px;
    color: #9999;
  }
  .bottom{
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .span3{
    font-size: 18px;
    font-weight: 600;
    color:red;
    margin-right: 5px;
  }
  .del{
    font-size: 12px;
    color: #9999;
  }
  .left-button{
    width: 20px;
    height: 20px;
    color: #0921a2;
    border: 1px solid #0921a2;
    border-radius: 50%;
    background-color: #fff;
  }
  .right-button{
    width: 20px;
    height: 20px;
    color:#fff;
    border: 1px solid #0921a2;
    border-radius: 40%;
    background-color: #fff;
  }
  .span4{
    margin: 0 7px;
    color:#0921a2 ;
  }
  </style>